package com.ruoyi.system.mapper.fx;

import com.ruoyi.system.domain.fx.FxWithdrawalRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 提现记录Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
public interface FxWithdrawalRecordMapper 
{
    /**
     * 查询提现记录
     * 
     * @param id 提现记录主键
     * @return 提现记录
     */
    public FxWithdrawalRecord selectFxWithdrawalRecordById(Integer id);

    /**
     * 查询提现记录列表
     * 
     * @param fxWithdrawalRecord 提现记录
     * @return 提现记录集合
     */
    public List<FxWithdrawalRecord> selectFxWithdrawalRecordList(FxWithdrawalRecord fxWithdrawalRecord);

    /**
     * 新增提现记录
     * 
     * @param fxWithdrawalRecord 提现记录
     * @return 结果
     */
    public int insertFxWithdrawalRecord(FxWithdrawalRecord fxWithdrawalRecord);

    /**
     * 修改提现记录
     * 
     * @param fxWithdrawalRecord 提现记录
     * @return 结果
     */
    public int updateFxWithdrawalRecord(FxWithdrawalRecord fxWithdrawalRecord);

    /**
     * 审核
     * @param ids
     * @param status
     * @return
     */
    int audit(@Param("ids") Integer[] ids, @Param("status") Long status);

    int updateStatusByIds(@Param("ids") Integer[] ids, @Param("delFlag") Integer delFlag);

    /**
     * 删除提现记录
     * 
     * @param id 提现记录主键
     * @return 结果
     */
    public int deleteFxWithdrawalRecordById(Integer id);

    /**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFxWithdrawalRecordByIds(Integer[] ids);
}
